﻿effect_set_non_hostile_mutual_secret_goal_power_difference = {
	save_scope_as = second_country
	random_list = {
		25 = {
			set_secret_goal = {
				country = scope:first_country
				secret_goal = befriend
			}			
		}
		75 = {
			set_secret_goal = {
				country = scope:first_country
				secret_goal = none
			}			
		}			
	}
	scope:first_country = {
		random_list = {
			25 = {
				set_secret_goal = {
					country = scope:second_country
					secret_goal = protect
				}			
			}
			15 = {
				set_secret_goal = {
					country = scope:second_country
					secret_goal = befriend
				}			
			}
			60 = {
				set_secret_goal = {
					country = scope:second_country
					secret_goal = none
				}			
			}			
		}	
	}
}

effect_set_non_hostile_mutual_secret_goal = {
	save_scope_as = second_country
	random_list = {
		35 = {
			set_secret_goal = {
				country = scope:first_country
				secret_goal = befriend
			}			
		}
		65 = {
			set_secret_goal = {
				country = scope:first_country
				secret_goal = none
			}			
		}			
	}
	scope:first_country = {
		random_list = {
			35 = {
				set_secret_goal = {
					country = scope:second_country
					secret_goal = befriend
				}			
			}
			65 = {
				set_secret_goal = {
					country = scope:second_country
					secret_goal = none
				}			
			}				
		}	
	}
}

effect_set_limited_non_hostile_mutual_secret_goal = {
	save_scope_as = second_country
	if = {
		limit = {
			has_strategic_adjacency = scope:first_country
		}
		
		random_list = {			
			35 = {
				set_secret_goal = {
					country = scope:first_country
					secret_goal = befriend
				}			
			}
			65 = {
				set_secret_goal = {
					country = scope:first_country
					secret_goal = none
				}			
			}	
		}
	}	
	else = {
		set_secret_goal = {
			country = scope:first_country
			secret_goal = none
		}			
	}	
	
	scope:first_country = {
		if = {
			limit = {
				has_strategic_adjacency = scope:second_country
			}
			
			random_list = {			
				35 = {
					set_secret_goal = {
						country = scope:second_country
						secret_goal = befriend
					}			
				}
				65 = {
					set_secret_goal = {
						country = scope:second_country
						secret_goal = none
					}			
				}	
			}
		}	
		else = {
			set_secret_goal = {
				country = scope:second_country
				secret_goal = none
			}			
		}		
	}
}

